package com.wyx.rtddels.controller;

import com.wyx.rtddels.service.DelRepeatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WYX
 * @date 2024/12/13
 * @Description  删除重复的数据
 */
@RestController
@RequestMapping("delRepeat")
public class DelRepeatController {

    @Resource
    DelRepeatService delRepeatService;

    /**
     * 删除重复数据
     * @param filePath 文件地址
     */
    @GetMapping("/file")
    public void delRepeat(String filePath){
        delRepeatService.delRepeat(filePath);
    }
}
